function initializeAutocomplete(autocompleteId, method) {
	var jq = jQuery.noConflict();
	jq("input[autocompleteId="+autocompleteId+"]").autocomplete({
		source: method
	});
	
	jq("input[autocompleteId="+autocompleteId+"]").bind("autocompleteselect", function(event, ui) {
		jq("input[autocompleteId="+autocompleteId+"][type=hidden]").val(ui.item.id);
	});
}